import os
import mcp
from mcp.server.fastmcp import FastMCP

mymcp=FastMCP()

@mymcp.tool()
def getDesktopFile():
   return os.listdir(os.path.expanduser('~/Desktop'))

@mymcp.tool()
def openNotepad():
   return os.popen('notepad.exe').read()
@mymcp.tool()
def openKuGouMusic():
   return os.popen('E:\KuGou\KGMusic\KuGou.exe').read()

@mymcp.tool(description="打开微信的调用工具")
def openWeiChat():
   return os.popen('"E:\WeChat\WeChat.exe"').read()
if __name__ == '__main__':
   mymcp.run(transport='stdio')